﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using MySql.Data.MySqlClient;
using System.Data;

namespace Bamuca.Codigo.DAO
{
    public class ConexaoDao
    {
        
        public static MySqlConnection SqlConectar()
        {
            MySqlConnection conn = new MySqlConnection(StrConexao);

            if (conn.State == ConnectionState.Closed)
            { conn.Open(); }

            return conn;
        }

        public static string StrConexao
        {
            //get { return "Data Source=.\\SQLEXPRESS;Initial Catalog=Bamuca;Integrated Security=True"; }
            get { return "server=localhost;port=3309;user id=root;password=root;database=bamuca"; }
        }

    }
}